package detector

import "google.golang.org/grpc"

type ZkOption struct {
    ZkAddresses                 []string
    ZkMetaPath                  string
    ZkTimeoutMilliseconds       uint64
    ZkCheckIntervalMilliseconds uint64
}

type Option struct {
    BeaconIntervalMilliseconds uint64
    CheckIntervalMilliseconds  uint64
    LeaseMilliseconds          uint64
    DelayMilliseconds          uint64
    GraceMilliseconds          uint64
}

var dialOpt = grpc.WithBackoffConfig(grpc.DefaultBackoffConfig)
var callOpt = grpc.FailFast(true)
